package com.joey.supermarket.model;

/**
 * @author 智刚
 * @data : 2021/8/7 16:04
 * @des ：枣 6元每斤
 */
public class Jujube extends Fruits{

    private double unitPrice = 6;

    @Override
    public double getUnitPrice() {
        return unitPrice;
    }

    @Override
    public String getFruitName() {
        return "枣";
    }

    public Jujube(int weight) {
        super.setWeight(weight);
    }
}
